import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入重置样式表
import reset from './assets/reset.css'
import Vant from 'vant';
import 'vant/lib/index.css'

// 引入axios
import axios from 'axios';
Vue.prototype.axios = axios.create({
	baseURL:"http://music.couchpotato.fun"
})
Vue.use(Vant);
Vue.config.productionTip = false

// 引入audio并挂载到实例身上
import audio from "../js/audio.js"
Vue.prototype.audio = audio;

new Vue({
  router,
  store,
  created(){
	  this.audio.vm = this
  },
  render: h => h(App),
  reset
}).$mount('#app')
